package com.zz.webapp.enums;

/**
 * Created by Administrator on 2017/1/31.
 */
public enum  ErrorCode {
    SUCCESS("success"),/* 成功 */
    PARAM_INVALID("param.invalid"), /* 参数不合法 */
    ACCOUNT_NOT_EXIST("account.is.not.exist"),/*账号不存在*/
    ACCOUNT_EXCEPTION("account.is.exception"),/*账号异常*/
    FAILED_LOGIN("account.login.failed"),/*账号登入失败*/
    CREATE_USER_FAILED("user.create.failed"),/*用户创建失败*/
    FAIL("failed");

    String msg;

    ErrorCode(String msg) {this.msg = msg;}

    public String toString(){return this.msg;}
}
